const mongoose=require("mongoose");

var MerchantSchema=new mongoose.Schema({
	grade:Number,
	mname:String,
	adress:String,
	mtel:String,
	dish:[{type:mongoose.Schema.Types.ObjectId, ref:"dish"}],
	logo:String,
	password:String,
	type:Number,
	createDate:Date
});

mongoose.model("merchant",MerchantSchema);